Add db thread pool option to keep idle connections alive

Merged
BR
6y ago
+7-0

This PR is fixing the following bug with idle db connections.

Closes #4675.