use SQL to convert language codes to two-letter form