Made mysql legacy loader.

Some more changes I forgot about.
I'm sure they are dead important though