Add authentication to couchdb connection