Update GraphDB.java

add index to sub element nodes.