added queryhelper.js