updated courses controller to ensure bookings are created and updated when a course is created and updated