CORE-1858: Changed queries to use USER_* tables instead ALL_* avoiding slowly performance when join tables.