Implemented the get by id method for the CourseDAO