Added the delete method to the Database class.