MDL-30668 gradereport_grader: split user preferences into individual courses

This solves the DB exception when users were trying to insert very large string in DB