Handled bug issues and random details

They should no longer be able to enter equal matrices and receive
points, the sql event should be functioning properly, and I added a
status column to the grades table on the instructor page. Also added a
maxlength to homework title because it errors if it goes bigger than 45
chars