register_to_couchdb in wsgi