switching couchdb communication to a secure port