add minimal query interface
implement minimal tuq-ng interface

most for testing and prototyping purpose