We currently make an assumption that the database ID matches the remote wiki's article ID. Break this assumption everywhere, and migrate existing data to the new schema.
It would be safest to organize changes so that we have a usable system at the end of each phase:
- All code that uses onwiki IDs should be refactored to read from the native_id columns.
- Stop syncing the primary key with native IDs, let them autoincrement.