removing tmpsql