Program can write related course graph into db and read it back out.