Setup of course db, controller and model