add no_couchbase flag to functions that will need to know whether or not to use couchbase or elasticsearch