Using pool instead of connection for mysql