check and repair method added to querystorage