Renumber the IDs in the database.