Started models for course and date

Still need to refine queries
Enabled debug