removed torch.isTensor from db (its in torch)