fixed mysql problem