Update how url is set for connection