insert courses into db