added hasConflicts function and getSchedule checks database to check if course is offered in fall/winter semesters