add script of insert into ts_relations