testing and changes for mongo select, couchdb