fixed mysql disconnects