Initial pass at migrating Course to use the database