create checkUniqueness, modify dagrADD to add links and images to database