On edit of an application from the partner view or delete of an application we should first generate a snapshot into the application snapshot tables