Edit statement prepare method