Use pgpool to connect to database.