Postgres Find In String Javascript Functions And Events