simple commandline db query tool