query view and moved commands to dbexplorer