lib.mysql.php access check update