fixes to query to make CSV extract of data
Merge branch 'master' of github.com:theodi/tsb-project-data