add error checking in the script that downloads the db from the parent server