Fixes to support MySQL.