Merging and working on hyc/lmdb pull request