queries return promises