Updated queries and file structure
Merge branch 'master' of https://github.com/henrycjc/historychains