Refactoring leaderboard_helper
Refactoring leaderboard_helper

Refactoring to reduce DB calls, loops and join operation are implemented in methods.

expertiza/expertiza,michaelamoran/expertiza,sid5788/expertiza,arpitashekhar/expertiza,KunmiaoYang/expertiza,joshio1/expertiza,mhhassan/expertiza,joshio1/expertiza,ApertureScienceInnovators/expertiza,ApertureScienceInnovators/expertiza,akshayjain114/expertiza,kira0992/expertiza,urmilparikh95/expertiza,mhhassan/expertiza,KunmiaoYang/expertiza,redsock88/expertiza,kira0992/expertiza,michaelamoran/expertiza,rmmaily/expertiza,ApertureScienceInnovators/expertiza,redsock88/expertiza,expertiza/expertiza,urmilparikh95/expertiza,rmmaily/expertiza,akshayjain114/expertiza,rmmaily/expertiza,arpitashekhar/expertiza,urmilparikh95/expertiza,joshio1/expertiza,mhhassan/expertiza,michaelamoran/expertiza,urmilparikh95/expertiza,kira0992/expertiza,rmmaily/expertiza,mhhassan/expertiza,expertiza/expertiza,sid5788/expertiza,michaelamoran/expertiza,sid5788/expertiza,akshayjain114/expertiza,arpitashekhar/expertiza,KunmiaoYang/expertiza,sid5788/expertiza,arpitashekhar/expertiza,ApertureScienceInnovators/expertiza,redsock88/expertiza,kira0992/expertiza,joshio1/expertiza,akshayjain114/expertiza,redsock88/expertiza,KunmiaoYang/expertiza,expertiza/expertiza