Highscores rewritten for SQL