UPDATE shipments set checkedat = to_timestamp(account_stated."month", 'YYYY-MM') FROM account_stated WHERE shipments.id = account_stated.reference and shipments.checkedat is null
UPDATE account_stated set transporter = shipments.transporter FROM shipments WHERE shipments.id = account_stated.reference