Event database creation