Adding functionality of creating the db directory on startup, crashes if
directory does not exist