Accessing PostgreSQL via HTTP using nginx