Bug Fix. Pass the course_id into the check_teachers function so that
student enrollments for teachers will only be deleted for the matching course