Resolve CE-1922 "Fix history table entries"
The IOC name for the Log entries is currently fetched from the IOC table (which stores the current data, not the history entry).
In order to fix this we should fetch the IOC name from the Deployment table which contains the historical information.
Tested on the TEST environment where the IOC with ID 498 should have 2 different names in the table: https://ce-deploy-test.cslab.esss.lu.se/iocs/498?tab=Management