move update beside pmt_id and add time after update