Auto create db directory if it does not exist.
Merge pull request #2 from kunday/issue/2

Auto create db directory if it does not exist.