Added a method to delete rows from the sample_hierarchy table with a null parent_id and renamed createSelectNullParentCountQuery method to selectNullParentCountQuery