Factored out insertCourse from Course to Database.