Added code to demonstrate removal of partition; fixed a bug related to marking a table as external