Bug fixes to calendar db tables and stumped out controller functions for calendar.py