index column order was coming back wrong from the database