Fixes #21.
Fixed test.
Merge pull request #30 from jmdobry/lazy-db-create

Lazy db create