Fix SQL for GRANT on a sequence

Report from liuyuanyuan.

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>
Saving of macros after pasting a query in to the box

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>
Allow quick injectection of favourites by name

This allows to replace the word under the cursor with it's corresponding
favourite

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>