fix course creation details, missing backup lib, $USER global misszing and wrong $hcategory->id adressing