added delayed insertion of nodes and more. code is broken
tried different queries for fetching data