Add has_and_belongs_to_many relationshipto contest and scheme