replacing couchdb design docs with mongo schemas