Change tinyint to smallint for DB II