Migrated to postgres; fixed DB error mixing up scale and precision for decimal values