changes to ratings to user days query