MySQL changes

this won't be changed unless issues come up on deployment. if you experience any problems while executing the sql script, try out this fix and open a PR with the fixed script.