updated functionality for upserts in child document when voting