added unique pub-course relationship to database