Update getData.php

I add 7 functions specific for archived and expired and changed getAssignment to return an the row instead of an ID