updateConnection

Updates the 'connection'.