update ratings database