Support case insensative search in sqlite and postgres