add commit to addVertex and addEdge in DBTree