mongo/couch: make document fields configurable