My ecommerce site will CMS ecommerce. And I believe most of ecommerce site use some kind of CMS. This means all the contents are in database.

How google bot and other crawlers can go into database?
What is the best practice for those who use CMS ?

Your input will be appreciated.
Thanks.