Added checks to delete the last subject/session/measurement
Ok, I now also check whether the table is empty/exists, else clean up the widgets. Fixes #113