add action field to pairs table
save function add
update index&pairs table when delete pattern file
pid is not unique
dsm() delete