updated the couch data api to the new signatures.