make each query a Promise

Refs #3