working on mysql disconnects