Add basic functionality for ldb and iterators