use correct berkeleydb formula