Code to delete and update the database #45