fixing the invoke of couchdb via opts

the opts thing was broken.  making like bulkdoc_saver code
fixing test.  abandoned yet again.