Fix mysql SQL files

Some typos and repeated tables need fixing in the mysql SQL files.