Update Database.php

changed the order that the getNamesInCourses returns its courses, should fix the timeout issue that CCDP2100 was causing for year 2