Postgres Find String Python