Lowercase the search stuff to avoid sqlite vs postgres issues.