added leaderboard functionality and counter cache for submissions