add entity table query for UI
add entity table query for REST API and DAO
add entity table query for REST API and DAO