refactored connection pool back into its own class.  This seems to make things simpler.