double-check some unique-together constraints in teacher app

fix an earlier confusion between course id and objective id