Added indexing to edge,node tables