Wrote code to save and retrieve from cloudant but no luck getting it to work.