Automatic foreign key check in SQLite.