fix batch (missing BEGIN) and add COUNTER/UNLOGGED (undocumented stuff)