3465 Changing capitalization of a user name leaves old version as default pseud 

https://code.google.com/p/otwarchive/issues/detail?id=3465

Updates #1396
While you're in there... Would you fix the formatting / style issues too, please? There are a couple of extra empty lines, indentation misalignment, and no space after a comma in `(old_login,@user.id)`.