fix FC on database restore
fixed FC on viewing teams attending event
code cleanup