Dear All,
Devices can be exported by The Dude software.
This https://github.com/name29/TheDudeLinkExporter is my start project that export link from the The Dude database.
Can you share some sample database? It will be quite easy to change your code into migration tool, but I need some data to test is on.
Sample data, screenshot and sample import script added inside the GitHub repository.