This function dedupes all records in the table(s) using the customer/address number. Optionally, the contact person and/or the company can be included in the comparison. This way, one can make a deduplication within the contact persons at one address, in order to find duplicate contact persons.