TDBTool fixes and Backup restore function