Changing manager's SQL connection and error trapping