code for load data to leveldb