fixed problem with BerkeleyDB creation