better query for leaderboards, orders by date correctly