switch from couchdb to mongodb