rewrote task for dropping empty dbs and apps