Added delete app and drop table operations and fixed some bugs