replace datasource with connection