[TASK] Prevent database error for upgrade wizard