reorder tables for delete

Reordered the tables in the domain downgrade script to avoid breaking i
the integrity constraints.   This only shows up when run against a
live database, as sqlite does not enforce them.

Change-Id: I00b687fb78d00c6240c8afb0efc26a9730ce4436
Merge "reorder tables for delete"