fix
add sql
refactor 'undo'
purge Editor from index.ts to editor.ts