implemented query building
Merge branch 'master' of github.com:gxa/atlas