Use global vars for common options.
Move existing globals.
Rework query_yesno.
Rework all tools to use globals.
Merge branch 'globals-rework'
Check config objects for NULL with reasonable default.
Forgot to save file while reworking globals.
Enable sqlite queries profiling.

It can be enabled using SQLITE_PROFILE=yes and setting DEBUG_LEVEL
to more than 0.