updated when homework statuses get updated in sql event