Support multiple courses - DB and PHP changes