pub fn write_and_log<F>( cx: &mut AppContext, db_write: impl FnOnce() -> F + Send + 'static )where F: Future<Output = Result<()>> + Send,