add / foreign key checks switch

Because while purging the database there is a foreign key check error often