added leaderboards and trash management in databases