Initial commit of the lmdb stuff