Add interface for lookup
Add SqlCriterion framework