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