Library Scan Issues

see Why does my movie Library completely reload after a scan? - #2 by OttoKerner

https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/