db update in registration