implemented basic database querying via command line