rewrite cypher updates to fix duplicate entry creation bug