refactor Bioko QueryHelper to use new gateway QueryResult functionality