sqlite -> PG + search substring