add batch to leveldb