Add connection pooling for mysql history