If you're scraping a website, you can't even know if there is a database, let alone what's in the database. For all you (or your code) can tell, there is someone sitting there typing out those ratings manually, or a function that generates them at random each time you access the page.
Another way of looking at it is if I asked you to tell me what the "real" rating was, where would you look? You can look on the displayed page; you can look in the HTML source, and in any JS, AJAX calls, etc. If you can find it in any of those, you can write a scraper for it; if you can't, you can't.
Imagine for a second that there was a special trick to read the database of any website in the world. Now you could go to Amazon and apply that trick to find the personal details of the people who left reviews, or of the suppliers who are selling marketplace items!
The owner of any website can choose what information to give you, and what to keep private. There's no way to force the website to tell you the private bits unless the person operating the site has accidentally left something available publicly that they intended to be private (and looking too hard for those mistakes may well be breaking the law).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…