Postgres Check If String Has Substring In Js