FAIMS-791: fixed bug with using databases for file syncing not sync changes to devices + bug with cache files each file info was requested