Added voting functionality - votes can be cast and the database is updated