added foreign key linking thing db to user db