use sqlite db to record task status instead mv xx to xxx.err