This method reads the rate data from the database and encodes it into the XML format. For further information on this format, see 'Rate Table XML Format' below.