Fixed mysql handlers