fixed db connection issues in statserv and game result submitting issues in game server