Added repair script to upgrade the legacy home storage ids