Implement metric save
Move leveldb packages to dependencies