Postgresql Loop Through Rows In Excel