fix(server, Leaderboard): Fix leaderboard to work with new db objects.

Also make dropdown switch smoothly for different time frames.