Modified dbio file for creating event