problem with foreign key constrain violation