LRE DMI - from pg table to JSON for GViz, plus other options