Added /rank and respective sql query