add flush to force hibernate statistics