new queries for the ADI script (bug 1014752)
Merge pull request #148 from magopian/1014752-adi-export-script-new-queries

[WIP] New queries for the ADI script (bug 1014752)