adding goroutines
fixed transaction commit issue
added goroutineess to main
merge functions in graph_helper