changes to enable postgresql to pass tests
postgres is much pickyer about data types
still one outstanding issue with test settings not updating .. humm