fixing MySQL failures