added code to the top of the App file to return connections to the connection pool.