Added getCourseFromDb to main