local function cmd(arg) local toString = require('xmllpegparser').tostring local s = toString(env.db,"\t") local fh = io.open(env.file,"w") fh:write(s) fh:close() env.changed = false end return cmd