Added dialog to execute database commands, plus minor label fixes to query panel