updated the provided Collection of TeachingMaterial after having
inserted/updated a TeachingMaterial