convert tinyint(1) to smallint instead of boolean