Moved actual operations to lmdb wrapper