DB migrate for exams and courses