Ricard: SQL to upgrade to varchar account codes