Fix some problems onn mysql activity