Add natives for getting other ratings.
Move update queries to insert callback.