deleteRecord updates references on 1-to-1
n-to-n with deletion updating references
lint cleanup