Optimize database associations
Add courses basic functionality