Dragons RFC secured a surprise victory in the European Rugby Challenge Cup, ensuring Welsh representation continues in the competition.