Move data_alter_table() back into data_ui as it requires too specific arguments - clearly a helper function.