update query to be election-specific