changes foreign key in user.sql