Implemented DB code, integrated with RankingsActivity view