Added Database update functions for ratings