parameterised $timeout_restart to allow for really big databases