timestamped filename now separate function

Still not running all 180 queries...