Only make changes to database on actual changes in events.