update backup-restore database model function.