Connection leak with PostgreSQL ThreadedConnectionPool
The methods list and init on Database take a connection but do not ensure to always put it back with a try/finally. Normally the code should not fail on normal condition but not under load stress. This may lead to connection being kept in the pool and never reused.
We should always guarantee to put back the connection to the pool with a try/finally.