Added exception handling for an insert where the sample ID already exists.