correctly link to pk of user table, not user_id of detail table