Added foreign key constraints for problems table