Refactored Couchbase backend