return generated id when persisting courses