added auth to couchdb; created couchdb url helper function