added authentication for couchdb