getProfessorsQuery() now returns all columns
removed redundant code
List classes under each professor