make test case compile again
fix SQL generation for FIND