pub async fn get_user_state_doc( state: &AppState, user_id: &str, ) -> Option<DocumentId>
Gets the user state document ID for a given user from the database.