For some reason I thought the tinyint size was the problem, but it should have been a int(10) like all the ID's.
Closes #22