Write event model & insert datas