added smallint datatype support