add an optional insert/delete/update filter on output