[Couchbase] Added sync functionality.