connectvars and insertdata