save source_tab before dealing with database
minor cleanup
remove notion of default database; instead force selection every time