if instead of a while loop for table schema information.