get attrs and changed attrs
added db.command() and Vertex.prototype.commitTo(db)