The database may not be running on the default PostgreSQL port, so we have to provide a way to specify the port.