HPCC-8556 Refactor const char * query functions from helpers

Rename some queryXXX functions to getXXX and support values that are not
compile-time constant.

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