Fixed upgrade process to ensure session data is a binary field