Allow database queue pool max overflow to be set in config.

For the sync workload we really want a small pool size and a large max
overflow, but in any case it makes sense for both parameters to be tunable.