Actually save the doc in couch
Merge remote-tracking branch 'chiiph/bug/save_doc' into develop