Add a thread to confirm every db connections periodicly.