fix postgres settings