ES updater script

Also changed ES init script, to store the last
CouchDB event recorded.