Save search settings whenever the dialogue is closed.

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>
This patch adds search capabilities for:

* Column's type names and default values
* Everything in a view definition
* Column names in composite types, tables and foreign tables

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>
Fix generated DDL for views

I've noticed that views for which I had never specified check_option
or security_barrier (in pgsql 9.3) have got incorrect DDL generated -
the "WITH (options)" clause is empty.

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