added onDelete=cascade to foreign key
Removed the automatic renaming of tables as it produces more problems than it solves.
Prefer dist packages in composer