Added events to the database