make foreign keys deferred before table contents clean up