WIP
bdb support
WIP