Fix: logged_at is updated using a raw SQL query.