Simple helper to handle update / insert / delete in a SAFE mode.