private void UpdatePlayerGameScore() { // Get all the player game scores from the MySQL database _mySqlDatabase.OpenConnection(); Console.WriteLine("Retrieving player game scores..."); var playerGameScores = new List <PlayerGameScore>(); if (_useGlobal) { playerGameScores = _mySqlDatabase.GetAllPlayerGameScores(); } else { playerGameScores = _mySqlDatabase.GetPlayerGameScoresForCenter(_centerId.Value); } _mySqlDatabase.CloseConnection(); // Save all the player game scores to the SQLite database _sqliteDatabase.OpenConnection(); Console.WriteLine("Saving player game scores..."); _sqliteDatabase.AddPlayerGameScores(playerGameScores); _sqliteDatabase.CloseConnection(); }