added leveldb write random times