private boolean doVote(Student Stud) {
		Connection conn = null;
		PreparedStatement stmt = null;
		ResultSet rs = null;
		String query;

		
		try{
			conn = panel.connPool.getConnection();
			query = "SELECT VOTED FROM eligible_students WHERE id = ?";
			stmt = conn.prepareStatement( query );
			stmt.setString( 1 , Stud.id );
			rs = stmt.executeQuery();

			if( rs.next() && rs.getBoolean( "voted"  )){
				JOptionPane.showMessageDialog( panel,
							       "This student has ALREADY VOTED!" );
				return false;
			}
		
		} catch( SQLException e ) {
			JOptionPane.showMessageDialog( panel,
						       "Error when retriving information from the database.\n" +
						       "Please contact your tech support.\n" +
						       "Details:\n" +
						       e.toString() );
			return false;
		}

		try{	
			conn = panel.connPool.getConnection();
			query = "UPDATE eligible_students SET voted = true WHERE id = ?"; 
			stmt = conn.prepareStatement( query );
			stmt.setString( 1, Stud.id );
			stmt.executeUpdate();
			return true;
		} catch( SQLException e ) {
			JOptionPane.showMessageDialog( panel,
						       "Error when updating information from the database.\n" +
						       "Please contact your tech support.\n" +
						       "Details:\n" +
						       e.toString() );
			return false;
		} finally {
			try {
				if( rs != null )     rs.close();
				if( stmt != null )   stmt.close();
				if( conn != null )   conn.close();
			} catch ( SQLException exc ) {
				System.err.println( exc.toString( ) );
			}
		}
		
	}