added query funcs
Merge branch 'master' of github.com:praveenax/greenscale