Remove duplicate records