Fixed an issue where clearTable was deleting in an invalid order.
Added course_id to the html tables