put couch_db a property method and use document_class instead to config