convert leveldb to log-structure