porting an old bdb wrapper to lmdb - any tips/docs?