Changes to support MySQL.