chore(entities): Move entity sql logic into entityTable service
Merge pull request #7447 from ewinslow/oo-entity-table

chore(entities): Move entity sql logic into entityTable service