add metrics and modify the connection pool