Now only append the port to the dbURL if the port is set.