Postgresql Loop Through Array Python Example Hello