progress in controls for create events and some bug fix with update sql database file