correction bug DB

type code ( int => string )