Enhancement sql maineditor.