minor changes to cleanUp sql