improved cypher query result handling