added postrm and prerm for odn-restsql. (remove and purge phase have been added)