Corrected discount model structure in the database.