conversion tables from IDs to codes