Fix the realms SQL from the merge.