update post set userid=X where username="Username" update thread set postuserid=X where postusername="Username"