recurse graph data from database and display workflow dynamically