Renaming api param RateProfileId into RatingProfileId, bug fixup in sql query related to SetRatingProfile API