pub(crate) async fn lookup<T>( db: &Database, column: &str, key: &[u8], project: impl FnOnce(Option<&[u8]>) -> T + Send, ) -> Result<T>