Fix postgress stuff