Cosmos event: update MySQL query