'Previously data input modules had a `name` attribute to rename individual steps. Here, this value is transferred
to the actual `label` attribute which is available for all module types, unique, and mapped to its own database column.'

def __set_default_label(self, step, module, state):

    if ((not module.label) and (module.type in ['data_input', 'data_collection_input'])):
        new_state = safe_loads(state)
        default_label = new_state.get('name')
        if (str(default_label).lower() not in ['input    dataset', 'input    dataset    collection']):
            step.label = module.label = default_label
