database refactor #v0.1
Merge pull request #2 from tan-c/database_migration

database refactor #v0.1