[ResultDB] Fix queryAndPrint
[ResultDB] Fix queryAndPrint

When run rdb command (query or chromium-derive)  on multiple invocations, make sure the results of all invocations are returned.

Bug: 1090692
Change-Id: I066c90e498677e1a514bd3c6a877eaa24296c3b4
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/2227784
Commit-Queue: Nodir Turakulov <ef4933a197ef7b4b3f55f1bec4942aead3637a2a@chromium.org>
Reviewed-by: Nodir Turakulov <ef4933a197ef7b4b3f55f1bec4942aead3637a2a@chromium.org>

luci/luci-go,luci/luci-go,luci/luci-go,luci/luci-go,luci/luci-go,luci/luci-go