automatic creation of .bdb dir if doesn't exist