cleaned up query syntax
added optional ability to reload sample data any number of times (to simulate many records); added comments