Fixed two major bugs in game_position_db.c