Tweaked database classes based on new tables

Updated the database classes that already had work done to comply
with the new table formats. These classes are unfinished, but provide
functionality for accounts and internal aspects of courses.