Fixed cascading deletion for grades

Added CASCADE for Grade relationships
so when users/assignments are deleted,
the application behaves properly and
does not fatal.