got it to save to sql and load, but the undo redo stack seemts to have extra stuff after loading from sql---