sqlcounter, always does the lookup or conditional