setExit function

Sets the exit date, if there is no exit column in the table