fixing insert data

Duplicates are being encountered that need special handling.