refactor(package): change leveldb to optional