task refactor, couchbase init ddoc