fix segfault, only provide lowlevel lmdb access