Fixed bug when retrieving percent_complete from database
the column order was mixed up with "archived" field