Add rating to database