Added adaptor and singleton factory classes
Implemented a single connection per thread