A very tiny bit better outlier data detection.
Fix pgsql insert to actually work. (sigh)