unittests for DatabaseConnectionPool (and fix bugs)

Change-Id: I6f251b4bdd472bd840ea1be6497660f8c31cd3e3
2 files changed