Fixed file entity names calls
Renew entities after db change.