private void instantiate(int size) {
        try {
            DBConnection con;

            for (int i = 0; i < size; i++) {
                con = new DBConnection();
                con.connect(driver, url, db, usr, pw);
                free.add(con);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }