Refactor transferJSON.js . Split DB to db.js  issue #8

Signed-off-by: Lee <jessy1092@gmail.com>
Bugfix: The hackpad's content doesn't match the event. close #7

Signed-off-by: Lee <jessy1092@gmail.com>