Updated user-specific category averages to solve performance problem by
writing smarter SQL queries.