remove protobuf dependency

Change-Id: I10bf90ba940bbde27d91df58056f4f558843f697
diff --git a/src/contact-storage.cpp b/src/contact-storage.cpp
index bc91ac6..d59a707 100644
--- a/src/contact-storage.cpp
+++ b/src/contact-storage.cpp
@@ -6,6 +6,7 @@
  * BSD license, See the LICENSE file for more information
  *
  * Author: Yingdi Yu <yingdi@cs.ucla.edu>
+ * Author: Qiuhan Ding <qiuhanding@cs.ucla.edu>
  */
 
 #include "contact-storage.hpp"
@@ -15,7 +16,7 @@
 #include "logging.h"
 
 
-// INIT_LOGGER ("chronos.ContactStorage");
+// INIT_LOGGER ("chronochat.ContactStorage");
 
 namespace chronochat {
 
@@ -308,9 +309,7 @@
       StringSource(sqlite3_column_text(stmt, 1), sqlite3_column_bytes (stmt, 1), true,
                    new HashFilter(hash, new FileSink(ss)));
     }
-    EndorseCollection::Endorsement* endorsement = endorseCollection.add_endorsement();
-    endorsement->set_certname(certName);
-    endorsement->set_hash(ss.str());
+    endorseCollection.addCollectionEntry(Name(certName), ss.str());
   }
 
   sqlite3_finalize(stmt);