Make cascade optional
Turn on foreign key checking for SQLite