Use connection pools to make connections thread safe.