Add leveldb and connect dependencies
Metrics get & save