merge_table_records_with_pk method integration with unit tests

@florrain  updated to the same on as merge_profile_extension