Instantiate

fix #46 

Allow query object to be created either with `new query()` or just `query()`