Detect rider when saving pets to SQL database