storing connection as class var