Cached tables
Cleanup
Added deferred flag to foreign key constraint