Added support for external Postgres servers