Added parameter flush to conditionally flush the database on scenario call