chane delete method

add SET FOREIGN_KEY_CHECKS before the  main query