migration to add courses table, courses logic added