Fix "unable to open database file None None"
Merge pull request #7 from pawl/patch-3

Fix "unable to open database file None None"