updated mysql-xxx and device-parse.php