Correctly apply ordering to new adverts and delete files when deleting.
Corrected advert stored procedure call.
Better procedure selecting.
Do not try to fill a child if the node is null.