Wrapper for Berkely DB