Control the lmdb iterator