Revert "Revert "added abillity to delete the database""

This reverts commit 4d923e8cba30d4e2157a4e37da791d3ce719fb61.