put discount and discount type into database