Database changed while doing stuffs