small game_db refac