Undo last format change and updated show sql query