rewrite downloadMgr: 1.use sqlite, 2.fix process manager