Disable PDF export when no database is open
Several UI tweaks