Fix mysql problem