Stopping database files from being deleted