get_db() only assigns the db after authentication (#257)