Adding connection logic for Profile provider
Standardizing initialize with all providers.