Added db-migration support.

Added db connection pooling.
Merge pull request #10 from madgloryint/db-refactor

Added db-migration support.