Use async.apply for queries