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.