Python Find Multiple Substring In Postgresql