Added corpus search and first sql based impl.