wrote SQL test code, added comments, exploded brain.