update_keys_given_parents function

Updates the keys of the datasets based on the parents