Updated to always use the host and root when a user and password are not defined.