Insert user.id to database (code)

When i try to use this to insert into a Referenced column, I get a “Broken Reference” entry