Fixed BDdb.merge() to reconcile table duplicates and reassign new data if source_id changes on merge.