Duplicate SQL records versus unique constraints