completed batch insertion code for neo4j