Fix bug DNN-4818: save the sql execute log with host portal id.