Added berkeleydb dependencies to build.
Added BerkeleyDBStore.