Change code to not attempt creation of duplicates

Change code to not attempt creation of duplicates after updating DB format