pass config to connection pool