On our free tutorials and training page we have a sample eCommerce database as well as the database starter kit for php. The starter kit will teach you about databases and creating your own. It is not based on the sample ecommerce db, but the ideas should apply to any relational db. Here is a link to the page:
tutorials-and-training/