On delete constraints

Added on delete constraints for each foreign key and fixed an issue in one of my Keywords queries