update sql make rindex nullable