make sure the foreign_keys pragma is enabled for SQLite

- this is needed for the cascade deletes to work