Pick .end or .release depending on whether using connection pool.

This enables support for the 2.0.0 alpha versions of MySQL when using
connection pools.