Change $link to conn