Abstracted connection info into separate class