wip
wip: add command line interface to query tool