changed sql syntax error in getCourses method