fix Postgres DB problem