update the sync function for latest sync gateway
can grab credentials from the replication without waiting for idle