set uid and provider for new records