Moved the setting of the window title to the verifyAndOpenDB function
because it's called from multiple places.
Implemented the quit action from the main menu.