Extracted connection info into a separate class