public List<Group> getGroupList(int schedule)
	{
		List<Group> list = new ArrayList<Group>();
		
		try {
			ResultSet rs = con.createStatement().executeQuery( "SELECT * FROM groups WHERE schedule=" + schedule );
			while(rs.next())
			{
				list.add(getGroupFromRS(rs));				
			}
			rs.close();
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return list;		
	}