Fixed types of owner_id and original_owner_id in table die from TINYINT to SMALLINT

Fixes #534.

Requires database update 00534_unit_test_crash_01.sql.

I think that the clearing of the database in #534 shouldn't be necessary any more, thus the fixes tag.