mysql check script