add dml to logcmd