public static void update(String ID, String mydate, String sort, String caption, String comments) {
        String sqlDelete;
        mydate="'"+mydate+"'";
        sort="'"+sort+"'";
        caption="'"+caption+"'";
        comments="'"+comments+"'";
        String sql="INSERT INTO Notepad (ID,mydate,sort,caption,comments) VALUES "+ "("+ID+","+ mydate + ","+sort+"," +caption + "," + comments + ")";

        sqlDelete="DELETE FROM Notepad WHERE  ID= "+ID;
        DB.sql(sqlDelete);

        DB.sql(sql);
    }