   `course` int(10) unsigned NOT NULL default '0',
   `name` varchar(255) NOT NULL default '',
   `practice` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
+  `modattempts` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
   `usepassword` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
   `password` VARCHAR(32) NOT NULL default '',
   `grade` tinyint(3) NOT NULL default '0',

  `answerid` int(10) unsigned NOT NULL default '0',
  `retry` int(3) unsigned NOT NULL default '0',
  `correct` int(10) unsigned NOT NULL default '0',
  `timeseen` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY (`userid`)

	);
# --------------------------------------------------------

CREATE TABLE `prefix_lesson_high_scores`
	( `id` int(10) unsigned not null auto_increment,
	  `lessonid` int(10) unsigned not null,
