made caching (pool) the connections to the database