public void close() {
        try {
            if ((this.connect != null) && (!this.connect.isClosed())) {
                this.connect.close();
            }
        } catch (SQLException ex) {
            System.out.println("Error: " + ex);
        }
    }