use SQL to convert language codes to two-letter form

using ruby takes ages and causes validation errors
Merge pull request #70 from Crabgrass/bugfix/convert-language-code-migration-to-sql

use SQL to convert language codes to two-letter form