TAJO-1026: Implement Query history persistency manager.