Example of using a database pool for connections