DQL replaced in history repository