MDL-46455 logstore_database: added restore support