pub async fn search_item<T: Entity>( db: &Database, item: &T, id: Option<u32>, ) -> Result<T, Box<dyn Error>>