Fixed leaderboard bug by adding another query to cloudcode functions