Add IDs to tables.