cypher query generator with TX