make sure database dir exists