Added authorization with couchdb