fix pgsql setup