Fixing the add doctor function to apply location to the location table.