Configuring connections to data sources