Userid is now correctly set upon creating a db profile while registering