beforeFlush, afterFlush callbacks take DbInsertQueue