Postgresql Find Substring Python Example