Added SQL-extract support

Via code editor context menu, SQL statement(s) can be extracted into a
SQL editor window.