improve efficiency of graph DB