Changed connection string to the RDS Postgres server
Changed the port number so nginx will proxy correctly.