added a secondary backup if an exception occurs during saving, meaning that important backups will not be overwritten later by corrupted copies of the database