ArrayList<Integer> getStudentCourses(ResultSet rs) throws SQLException {
        
        ArrayList<Integer> data = new ArrayList<>();
        while (rs.next()) {
            data.add(rs.getInt(2));
        }     
        return data;
    }