HPCC-8556 Refactor const char * query functions from helpers

More cleanup of dead code and out-of-date comments.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>