updated provider insert statement to check if the provider already exists