automatic handling of the Courses database table