Added history on sql queries

Enhanced the console window directive
Added a new filter 'Truncate'
Changed the button order of the Execute and select database on the sql page