Added update function to remove un-used field database tables after switch to virtual fields