Adding ID to tables for embedding