public void staffListHosp(Vector<Staff> staff, String toMatch, DefaultListModel list) {
        try {
            list.removeAllElements();
            Vector<StringBuffer> t = new Vector();
            int ind = -1;
            String lName = toMatch.substring(0, toMatch.indexOf(","));
            String dBirth = toMatch.substring(toMatch.indexOf("(") + 1, toMatch.indexOf(")"));
            for (int i = 0; i < staff.size(); i++)
                if (staff.get(i).getLname().equalsIgnoreCase(lName) && staff.get(i).getbDate().toString().equalsIgnoreCase(dBirth))
                    ind = i;
            ResultSet rs = DB.db.staff(staff.get(ind).getLname(), staff.get(ind).getbDate());
            while (rs.next()) {
                ResultSet rh = DB.db.staffSchedule(rs.getInt("id"));
                while(rh.next()){
                    ResultSet rsh = DB.db.hospital(rh.getInt("hospid"));
                    while(rsh.next()){
                        StringBuffer tmp = new StringBuffer();
                        tmp.append(rsh.getString("name"));
                        t.add(tmp);
                    }
                }
            }
            // building list
            for (int i = 0; i < t.size(); i++)
                list.add(i, t.get(i).toString());
        } catch (SQLException ex) {
            Logger.getLogger(Func.class.getName()).log(Level.SEVERE, null, ex);
        }

    }