add history table view controller
complete history query function.