force cast average rating to an integer
Merge pull request #286 from deniszgonjanin/master

force rating to integer to fix SQL quirkiness