added 'query' method
Initial commit