does everything but print the rows of data out to the screen