updated skeleton for pm0, added lines to check for table and delete prior to creation