change search by sql to use all terms typed