creating db dir if it doesn't exist

this fixes #73 on github