Options now get loading in discussion.php.
Small changes made to data.php to reflect the relocation of course permission from the courses table to the options table.