fixed query for states and added demo environment
Merge pull request #1 from nature/pa-1324

fixed query for states and added demo environment