insert into couchdb document using php and curl