Database Update

Improved Cascading and changed class_id to varchar(10)