adopting USE_HISTORYDB to polybench