more refactoring and class_time storage

now stores the course time information in the database for easy look-ups