seperated data access to own class using dao for course