Fix race condition in ConnectionPool

Fixes #158
Introducing DummyConnectionPool for when only 1 connection defined