Fixed mysql_available scope