create category rating averages for teacher/students but teacher dashboard broken