delay query.run for async to work