almost done with bdb