Timetable solution program completed - stores solution in database for both teachers and students