creating table with entity ID