Fixed the bug in the table display after adding a new record. It was caused by a silly calculation of the MdhRecordList::firstRec property, which was causing it to be set to a negative number.
Now I have one more bug: when editing an existing record which is NOT on the first page of records, the save_rec.php file returns no data, or bad data. Now looking into that. After that, it's record deletion.