backend is ready for driver calendar page, refactoring