TensorDB and tensor-relational model (TRM) for efficient tensor-relational operations