Add couchbase view generation code