Completed CodeIgniter Movement

Also added checking if course name is in the list of courses
Fixed database queries