changed id foreign key from string to int