add the check if coupon exist before adding it to the database