write to disk on delete or insert