sql fix, voting works