Some relations between objects are mapped using username or course code fields instead of allowing the ORM to handle relations. This has caused issues #31 and #51.
Using the ORM will make reasoning about relations much more straightforward, remove issues like those mentioned above and mean that the DB is better normalised.