Fix bso#10126, test for use_db == 0 before trying to connect
to a database. This needs testing.

Catch SIGUSR1, and re-read the configuration file on demand.
This code needs to lock a mutex, not yet fully done.