Basic voting functional with database updates