Updating database scripts: including mongodb index script and elasticsearch delete and create index using mongodb river connector