Here we remake the dbpath after deleting it, but we catch os.error, instead of using exist_ok=True. This might be masking other issues