Fixed mysql file a bit

Still needs major work.