Update Export Strategy to query data from db with history query command, step A, unfinished.