Not sure why you change the original approach except the addition of the password field which you could've just added onto the other approach. I like the old way more, this seem unnecessary, e.g. `$connect_info`.