Fixed mysql problem