tolower tablenames for while loop