Check for duplicate data