Fixing Neo4j helper functions