added clearer error message when p2 depends on p3 and p3 table does not exist.