changing the mysql connection pool to use release instead of end