Basic voting sql.