Build a connection class to make easier to drop in