Added the avoid for the library that distribution has already have.
Added the autocommit function to all the write buffers, and fix the bug that the db iterator not working properly.