Fixed the update course method in the sql class