Add updated_at field to User.
Move queries out of views.