linking database (couchDB).