database: Make course directory a global variable.