add digram and relationship between user and courses