Fix for converting old device databases and the json module