Experimenting with locks
Very messy - needs to be tidied up
Tidy up of deleted records list
Making descision to risk write failure
and a deleted record not being flagged as such