private String changed to private static final
doAllFunctions query rewritten for V6 compatibility