Fix autowiring for Datasource.