pub fn read_and_remove_pending_experiments( db: &Database, writer: &mut Writer<'_>, ) -> Result<Option<Vec<Experiment>>>