Added unit test for DatabasePool

Also added a OutOfConnectionsException which will be thrown by the
DatabasePool if it's out of connections.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>