Nothing was changed since ages and your logs are empty so it’s hard to know what you did to trigger the loss. (If you remove the host then data is lost)
If the data is lost then it’s lost nothing to be done now. You can sync favorite status with Plex by enabling the option Favorites as ratings in your plex provider