More changes to work with the cmangos realmd database.