Was missing the database name from the database dictionary
Created classes for each of the tables along with a function to connect to the db and create the specified tables
tweaked some of the table definitions. Aslo added two functions

get_or_create function will first see if an entity with the specified attributes
exists and if so return it, otherwise it will create the entity

insert_product_type will take a list which is a trace through the product
type tree and insert all missing nodes in the trace using the nested
set model
Scraper now adds items to the database as expected.