Starts code for getting vote count data from database