Updated the user and course tables some more

Fixed an error in the course table and changed from the default
character set and collation for the user and course tables.
Implemented backend parts of the new login