Added Diary member function to check to see if the diary is open.
Added fix and some functionality to propmt the user for a new diary or open an existing dialog when no settings have been found.
Made the quit event write the settings.
Update verifyAndOpenDB for better handling of different cases.