Build closures that initiate MySQL and MSSQL connections to avoid retaining the password as a property.