add pid in history_record,update history and data_show