enable get_votes and print sql statement