Add function to prevent user from deleting a database multiple times