fn build_shared_db( db_pool: Arc<DbPool>, standby_mode_active: bool, skip_db_migrations: bool, ) -> Result<Arc<DatabaseHandler>>