Fixes the ETL-load updates, and refactors it out of the hr_xml_to_json

function.