Ensured that duplicate Contacts are not output

Applies to "get_all_contacts_by_last_update"