database duplicate records fix