trying to fix table foreign key issue
fixed typos, should be a rebase but idk that ish