Change the connection constructor to use separate functions to set attributes.