add primary key in tags table in db, and use testSqlite3.js to test init database
improve init database flow
Merge pull request #186 from huyuanzhe/data2

data2#153_yuanzhe->wangfeng