completed bdb interface