Implements bdb method for test.