$author = $_GET['a'];
     $mods = $_GET['mo'];
     $hidden = $_GET['h'];
     $category = $_GET['c'];
     $description = $san->sanitize($_POST['d']);
     //$_GET['d'];
     $dbresult = $dbConnect->updateName($id, $name, $author, $mods, $description, $userId, $hidden, $category);
     die("Updated");
     break;
 case 3:
     if (!isset($_GET['v'])) {
         die("invalid parameter");
     }
     $ver = $_GET['v'];
     $nameId = $_GET['nId'];
     $dbresult = $dbConnect->addLuaVersion($ver, $nameId, $userId);
     echo $dbresult;
     die($dbresult);
     break;
 case 4:
     if (!isset($_GET['c']) || !isset($_GET['a']) || !isset($_GET['id'])) {
         die("invalid parameter");
     }
     $id = $_GET['id'];
     $changelog = $_GET['c'];
     $active = $_GET['a'];
     $dbresult = $dbConnect->updateLuaVersion($id, $changelog, $active, $userId);
     die("Updated");
     break;
 case 5:
     //add lua file