fn extract_id(id: &str, db: &Db) -> Result<TantivyDocument, AppError>