creation of events_main db