private ArrayList<Integer> query2(String name) {
		try{
        	openDatabase();
		}catch(Exception e){}
		
		String query = "SELECT StudentID FROM t8005t2 .takes WHERE ID IN (SELECT ID FROM t8005t2 .modules WHERE name = '"
				+ name + "')";
		ArrayList<Integer> students = new ArrayList<Integer>();
		try {

			stmt = conn.createStatement();
			ResultSet rs = stmt.executeQuery(query);
			while (rs.next()) {
				int student = rs.getInt("studentID");
				students.add(student);
			}
		} catch (Exception e) {
			System.err.println("Problem executing 'query2'");
			System.err.println(e.getMessage());
		}
		
		try{
        	closeDatabase();
		}catch(Exception e){}
		return students;
	}