Postgres Find Value In String Python