Moved retrieveDuplicateMap to the database-utils