SQL: Updated voter statistics query