change leveldb to def