everything for ranking by category is done except for modifying the ranks class and all the sql calls to rank