Save event to database