PHP Class for talking to Couch DB