Callback for deletion of database

Success and failure callbacks have been added to the delete database
functionality.