added query promise chaining support
Merge pull request #21 from Zolmeister/Zolmeister-promises

added query promise chaining support