Add single step execution to the SQL tab

Add a new action to allow the execution of the SQL statement in the
current line. This also supports multi-line SQL statement.
MainWindow: Improve SQL tab behaviour

Don't allow opening and saving when no database file is opened.

Close all tabs when the database is closed.