Detect "modified" and avoid duplicate Mongo record