Queries for inserting nodes and edges