Trying to fix PUT to couchdb