public ArrayList<Teacher> teachers(ResultSet rs) throws Exception {
        DBConnector db = new DBConnector();
        ArrayList<Teacher> data = new ArrayList<>();
        while (rs.next()) {
            data.add(new Teacher(db.getPerson(rs.getInt("personid"))));
        }
        return data;
    }