Store code_rate, date and prev_date to the db.