Added functionality to actually save new events and insert them into the SQLite database.