optimize the game util class, and create db manager class