messy commit - working on associating users with preferred categories through preferences table