SqlConnector syncronization with connection string

These changes are to fix two issues.
1. SQL connector should wait for database lookup before saving a connection string
2. SQL Connector doesn't refresh connection on credential change