add error cheching when downloading parent db