check for db error during restore process