Turns RethinkDB RQL queries into promises.