Table error in userprofile and fix to history page

The user profile column was not big enough to hold the password hash