Updated migrateKVPs to return string instead of unit