adapt the configuration of datasource