force rating to integer to fix SQL quirkiness