more db_session bugs