Cleaned up acquire connection pool method. More elegant
Simplified login to acquire connections
Made code more robust in case server cuts the connection on us