Updated RegistrationResource and DbProvider.