Some bugs, still have crashes when connecting to couch

add update script, will add example json later.