recover last insert id and modified trigger