writeDirty

Insert or overwrite all changed items in the provided map into the database