Bug fix in sql connection failover.