pub fn load_state_events_from_db( conn: &Connection, document_hash: Option<&str>, ) -> Result<Vec<StateEventStatus>>