Fixed mysql failures