Fixed sql query in ScoreHandler