flush buffers before quering the database or dumping it
renamed dump methods to flush