Fixed spark core code. Added MySQL scripts.