* Cleaned up tableNamesWithUseIndexOrJOIN() and removed some duplicated code