Convert SQLite tinyint to PostgreSQL smallint, fixes #97.