refactor DB module
Merge pull request #16 from koboshi/develop

refactor DB module