Fix for SQLite3 foreign keys.