working read only version with couch db