fixed: when updating/deleting events, forgot to write to users.txt and groups.txt