Finally got Postgres to work