change course db structure