Well, what is strange that it was crashing before the upgrade as well. The difference in the design of your prior version and version 7 are completely different, and the fact that it was crashing then and crashing now even with all the changes leads me to believe there is some underlying factor.

Are you running the latest MySQL version? If not then you could look at upgrading MySQL.