the implement of bdb filter and bloom filter