Fixed a few minor bugs in the assignments section of the gradebook module, and the profile. Also added in the missing `notice_id` field to the `assignments` table which is used by the assignment notices feature.