fix sql for leaderBoard