Postgres Check If String Contains Python String