GET /courses api endpoint now serving course data from database