saving event. SQLite database fix