changed to use MysqlDB and to catch exceptions and output an error message in the xml if an exception is encountered.