fixing set_vote psql func