add long_query_time to history view