Link category, item and user together, with migrations and foreign keys