update sample connection demo