Fix set_sequences to behave properly with an empty table; make manager's add_data_item to use a file instead of directly passed data.