Add query to delete old, improperly expired sessions during 2.0 upgrade. #2031