#881-TP [FEATURE] Improved support for automatic detection of DB tables used within a query