calendar: add system to handle database failures and prompt the user to repair it.
calendarGUI: fix typo