Added a couple more checks dedup record verification. Fixed a logic issue that might have left records without dedup_id. Improved code a bit here and there.  Made renormalize only set update_needed if any of the dedup keys changed.