Modify methods create_tables and clear to cascade deletes and updates.