extract table info from entity func