write_data_to_repo